package xyj.sparrow.scheduler.common;

import lombok.Data;

/**
 * @author 江南小俊
 * @since 2021/6/11 下午10:53
 **/

public enum ResultCode {
    SUCCESS(200, "成功"),
    PERMISSION_DENIED_ERROR(403, "没有权限"),
    ERROR(500, "失败");

    private Integer code;
    private String msg;

    ResultCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
